﻿using System;

namespace EpiNEXT.Core.Validation.Functions
{
    public sealed class CurrentUser : FunctionBase
    {
        public CurrentUser()
            : base()
        {
        }

        public override object Execute(Record record, params object[] parameters)
        {
            return System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();
        }
    }
}
